package top.caozj.conf;

import java.time.format.DateTimeFormatter;

/**
 * Copyright (c) 2010, 2025, xjk All rights reserved.
 *
 * @author caozj thucaozj@outlook.com
 * @version 1.0
 * @date 2025-03-25
 * @since 20
 * 数据查询类
 */
public class DataQuery {
    private String sql;
    private DateTimeFormatter dateTimeFormatter;

    public DataQuery(String sql, DateTimeFormatter dateTimeFormatter) {
        this.sql = sql;
        this.dateTimeFormatter = dateTimeFormatter;
    }


    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public DateTimeFormatter getDateTimeFormatter() {
        return dateTimeFormatter;
    }

    public void setDateTimeFormatter(DateTimeFormatter dateTimeFormatter) {
        this.dateTimeFormatter = dateTimeFormatter;
    }

    @Override
    public String toString() {
        return "DataQuery{" +
                "sql='" + sql ;
    }
}
